# Maintainer: Antonio Rojas <arojas@archlinux.org>
# Contributor: Maximilian Stahlberg <maximilian.stahlberg tu-berlin de>

pkgname=python-pyscipopt
pkgver=4.3.0
pkgrel=2
pkgdesc='A Python interface to the SCIP Optimization Suite'
arch=(loong64 x86_64)
url='https://www.scipopt.org/'
license=(MIT)
depends=(python scip)
makedepends=(cython python-build python-installer python-setuptools python-wheel)
source=(https://github.com/SCIP-Interfaces/PySCIPOpt/archive/v$pkgver/$pkgname-$pkgver.tar.gz)
sha256sums=('f2c71fdf9cdf4bbe2bdb3f26a1e3f5eb6d7a95e0c3dd6b7b31d4d5a910a191b2')

build() {
  cd PySCIPOpt-$pkgver
  python -m build --wheel --no-isolation
}

package() {
  cd PySCIPOpt-$pkgver
  python -m installer --destdir="$pkgdir" dist/*.whl
}
